package com.aios.model;

import java.util.ArrayList;
import java.util.List;

import com.aios.util.MappingUtil;

public class TapGroupModel {
	
	private Integer tap_group_id;
	private String tap_group_name;
	
	private List<Tap> tap_list;
	
	public TapGroupModel(Integer tap_group_id) {
		this.tap_group_id = tap_group_id;
		populate();
	}
	
	private void populate() {
		tap_list = new ArrayList<Tap>();
		
		List<Integer> tapIdList = MappingUtil.TapGroupMap.get(this.tap_group_id);
		
		for(Integer i : tapIdList) {
			tap_list.add(MappingUtil.Tap.get(i));
		}
	}

	public Integer getTap_group_id() {
		return tap_group_id;
	}

	public void setTap_group_id(Integer tap_group_id) {
		this.tap_group_id = tap_group_id;
	}

	public String getTap_group_name() {
		return tap_group_name;
	}

	public void setTap_group_name(String tap_group_name) {
		this.tap_group_name = tap_group_name;
	}

	public List<Tap> getTap_list() {
		return tap_list;
	}

	public void setTap_list(List<Tap> tap_list) {
		this.tap_list = tap_list;
	}
	
}
